<div class="studentProvinces index">
<h2><?php __('StudentProvinces');?></h2>
<!-- Table Navigation -->
<div class="tablenav">
    <div class="batchactions"></div>
    <?php echo $this->element('pager'); ?>
</div>
<!-- Table Content Area -->
<table class="table fixed">
    <thead title="<?php __('Click a column to sort data table'); ?>">
        <tr>
            <th width="5%" class="checkbox" title="<?php __('Click to select/deselect all records'); ?>"><input type="checkbox" class="checkbox" /></th>
            <th><?php echo $paginator->sort('id');?></th>
            <th><?php echo $paginator->sort('name');?></th>
            <th><?php echo $paginator->sort('student_count');?></th>
            <th class="actions"><?php __('Actions');?></th>
        </tr>
    <thead>
    <tfoot title="<?php __('Click a column to sort data table'); ?>">
        <tr>
            <th class="checkbox" title="<?php __('Click to select/deselect all records'); ?>"><input type="checkbox" class="checkbox" /></th>
            <th><?php echo $paginator->sort('id');?></th>
            <th><?php echo $paginator->sort('name');?></th>
            <th><?php echo $paginator->sort('student_count');?></th>
            <th class="actions"><?php __('Actions');?></th>
        </tr>
    <tfoot>
    <tbody>
        <?php foreach ($studentProvinces as $i=>$studentProvince):
            $class = $i++ % 2 == 0 ? ' class="altrow"' : ''; ?>
        <tr<?php echo $class;?>>
            <td><?php echo $studentProvince['StudentProvince']['id']; ?></td>
            <td><?php echo $studentProvince['StudentProvince']['name']; ?></td>
            <td><?php echo $studentProvince['StudentProvince']['student_count']; ?></td>
            <td class="actions">
                <?php echo $html->link(__('View', true), array('action' => 'view', $studentProvince['StudentProvince']['id'])); ?>
                <?php if($user['group'] != 'student'): ?>
                    <?php echo $html->link(__('Edit', true), array('action' => 'edit', $studentProvince['StudentProvince']['id'])); ?>
                    <?php echo $html->link(__('Delete', true), array('action' => 'delete', $studentProvince['StudentProvince']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $studentProvince['StudentProvince']['id'])); ?>
                <?php endif; ?>
            </td>
        </tr>
        <?php endforeach; ?>
    <tbody>
</table>
</div>
<div class="actions">
    <ul>
        <li><?php echo $html->link(__('New StudentProvince', true), array('action' => 'add')); ?></li>
    </ul>
</div>
